<?php

namespace App\DashboardBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * App\DashboardBundle\Entity\ProductMap
 */
class ProductMap
{
    /**
     * @var integer $id
     */
    private $id;

    /**
     * @var \DateTime $createdDate
     */
    private $createdDate;

    /**
     * @var integer $createdUserId
     */
    private $createdUserId;

    /**
     * @var integer $isActive
     */
    private $isActive;

    /**
     * @var App\DashboardBundle\Entity\ProductAttrVal
     */
    private $attrVal;

    /**
     * @var App\DashboardBundle\Entity\Product
     */
    private $product;

    /**
     * @var App\DashboardBundle\Entity\ProductAttr
     */
    private $attr;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set createdDate
     *
     * @param \DateTime $createdDate
     * @return ProductMap
     */
    public function setCreatedDate($createdDate)
    {
        $this->createdDate = $createdDate;
    
        return $this;
    }

    /**
     * Get createdDate
     *
     * @return \DateTime 
     */
    public function getCreatedDate()
    {
        return $this->createdDate;
    }

    /**
     * Set createdUserId
     *
     * @param integer $createdUserId
     * @return ProductMap
     */
    public function setCreatedUserId($createdUserId)
    {
        $this->createdUserId = $createdUserId;
    
        return $this;
    }

    /**
     * Get createdUserId
     *
     * @return integer 
     */
    public function getCreatedUserId()
    {
        return $this->createdUserId;
    }

    /**
     * Set isActive
     *
     * @param integer $isActive
     * @return ProductMap
     */
    public function setIsActive($isActive)
    {
        $this->isActive = $isActive;
    
        return $this;
    }

    /**
     * Get isActive
     *
     * @return integer 
     */
    public function getIsActive()
    {
        return $this->isActive;
    }

    /**
     * Set attrVal
     *
     * @param App\DashboardBundle\Entity\ProductAttrVal $attrVal
     * @return ProductMap
     */
    public function setAttrVal(\App\DashboardBundle\Entity\ProductAttrVal $attrVal = null)
    {
        $this->attrVal = $attrVal;
    
        return $this;
    }

    /**
     * Get attrVal
     *
     * @return App\DashboardBundle\Entity\ProductAttrVal 
     */
    public function getAttrVal()
    {
        return $this->attrVal;
    }

    /**
     * Set product
     *
     * @param App\DashboardBundle\Entity\Product $product
     * @return ProductMap
     */
    public function setProduct(\App\DashboardBundle\Entity\Product $product = null)
    {
        $this->product = $product;
    
        return $this;
    }

    /**
     * Get product
     *
     * @return App\DashboardBundle\Entity\Product 
     */
    public function getProduct()
    {
        return $this->product;
    }

    /**
     * Set attr
     *
     * @param App\DashboardBundle\Entity\ProductAttr $attr
     * @return ProductMap
     */
    public function setAttr(\App\DashboardBundle\Entity\ProductAttr $attr = null)
    {
        $this->attr = $attr;
    
        return $this;
    }

    /**
     * Get attr
     *
     * @return App\DashboardBundle\Entity\ProductAttr 
     */
    public function getAttr()
    {
        return $this->attr;
    }
    
    public function __toString()
    {
      return $this->name;
    }
}